<?php
$this->registerCss("
    html, body {
        position: relative;
        height: 100%;
    }
    body {
        background: #fff;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color:#000;
        margin: 0;
        padding: 0;
    }
    .swiper-container {
        width: 100%;
        height: 602px;
        margin:0 auto;
    }
    .swiper-slide {
        text-align: center;
        background: #fff;
    }
    .swiper-pagination-bullet-active {
        background: #fff;
    }

    input{width:100%;height:44px;background: #fff;border:0px;outline: none;border-radius: 2px;padding-left: 15px;font-size: 14px}
    textarea{width:100%;height:100px;background: #fff;border:0px;outline: none;border-radius: 2px;padding: 15px;font-size: 14px;}
    button{width:100%;height:44px;background:linear-gradient(218deg,rgba(26,186,254,1) 0%,rgba(60,111,253,1) 100%,rgba(60,111,253,1) 100%);border-radius:2px;outline: none;border-radius: 2px;border:0px;font-size: 16px;color:#fff;}
    .layui-layer-lan .layui-layer-title {
        background:rgb(58, 65, 78) !important;
    }
    .layui-layer-rim .layui-layer-btn a {
        height: 40px !important;
        line-height: 40px !important;
        padding: 0 42px !important;
    }
    .layui-layer-rim .layui-layer-btn {
        text-align: center !important;
    }
");
$setting = Yii::$app->setting;
?>
<link href="https://cdn.bootcss.com/animate.css/3.7.0/animate.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/Swiper/3.3.1/css/swiper.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/layer/2.3/skin/layer.css" rel="stylesheet">
<div class="page-touch-index">
    <div class="sec-one">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide" style="background: url('https://other3.oss-cn-beijing.aliyuncs.com/13network/mwaibaobg12x.png') no-repeat center;background-size: cover;position: relative;">
                    <div style="position: absolute;top:50%;left:50%;transform: translate(-50%,-70%);width: 100%;">
                        <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/mwaibaologo2x.png" style="width:117px"></p>
                        <p style="color: #fff;font-size: 24px;letter-spacing: 1px;margin-bottom: 0px;margin-top: 20px;font-weight: 500;">一站式互联网信息化服务</p>
                        <div style="height:1px;width:48px;background-color: #fff;margin: 20px auto"></div>
                        <p class="wow fadeIn" data-wow-duration="1s" style="font-weight: 300;font-size: 16px;color:#fff;letter-spacing: 1px;padding: 0px 25px;">我们让每一个企业更有价值 五年网站建设经验 数千家客户案例!</p>
                    </div>
                </div>
                <div class="swiper-slide" style="background: url('https://other3.oss-cn-beijing.aliyuncs.com/13network/mwaibaobg12x.png') no-repeat center;background-size: cover;"></div>
            </div>
            <!-- Add Pagination -->
            <div class="swiper-pagination"></div>
        </div>
    </div>

    <div class="sec-two" style="padding: 20px 25px;background: #F4F4F5;text-align: center;">
        <p style="color: #333333;font-size: 24px;letter-spacing: 1px;margin-bottom: 0px;margin-top: 20px;font-weight: 500;">项目服务</p>
        <div style="height:1px;width:48px;background-color: #333333;margin: 15px auto"></div>
        <p class="wow fadeIn" data-wow-duration="1s" style="font-weight: 300;font-size: 16px;color:#333;letter-spacing: 1px;">我们让每一个企业更有价值 五年网站建设经验 数千家客户案例!</p>

        <div class="service-list" >
            <div class="service-item wow zoomIn" data-wow-duration="1s" style="margin-top: 32px">
                <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/Bitmaptuli1.png" style="width:175px"></p>
                <p style="font-size:26px;font-weight: 500;color:#333;margin-top: 20px">PC端网站建设</p>
                <p style="font-size:16px;font-weight: 300;color:#777777;margin-top: 12px">三十一天从方案设计到成本规划提供整体完善网站制作解决方案，拥有高端的HTML5网站建设开发团队。</p>
            </div>

            <div class="service-item wow zoomIn" data-wow-duration="1s" style="margin-top: 32px">
                <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/Bitmaptuli2.png" style="width:175px"></p>
                <p style="font-size:26px;font-weight: 500;color:#333;margin-top: 20px">移动端网站建设</p>
                <p style="font-size:16px;font-weight: 300;color:#777777;margin-top: 12px">三十一天醉心于营销设计，成为江苏服务贴心的手机网站建设公司，从手机网站建设到微信网站建设。</p>
            </div>

            <div class="service-item wow zoomIn" data-wow-duration="1s" style="margin-top: 32px">
                <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/Bitmaptuli3.png" style="width:175px"></p>
                <p style="font-size:26px;font-weight: 500;color:#333;margin-top: 20px">SEO优化</p>
                <p style="font-size:16px;font-weight: 300;color:#777777;margin-top: 12px"> 企业成功，策划先行，无营销不网站；我们有许多成功的网站优化推广案例与营销策划经验，用seo优化技术解决网站推广难题！</p>
            </div>

            <div class="service-item wow zoomIn" data-wow-duration="1s" style="margin-top: 32px">
                <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/Bitmaptuli4.png" style="width:175px"></p>
                <p style="font-size:26px;font-weight: 500;color:#333;margin-top: 20px">网站运维</p>
                <p style="font-size:16px;font-weight: 300;color:#777777;margin-top: 12px">三十一天提供全系列网站运维服务，网站维护与网站资料添加于一体的网络服务商。配备安全快速的服务器为您的网站保驾护航。</p>
            </div>

            <div class="service-item wow zoomIn" data-wow-duration="1s" style="margin-top: 32px">
                <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/Bitmaptuli5.png" style="width:175px"></p>
                <p style="font-size:26px;font-weight: 500;color:#333;margin-top: 20px">APP设计与开发</p>
                <p style="font-size:16px;font-weight: 300;color:#777777;margin-top: 12px">三十一天已经服务上万家大中小型企业和创业团队，以专业的APP技术基础作为项目如期上线的可靠保障</p>
            </div>

            <div class="service-item wow zoomIn" data-wow-duration="1s" style="margin-top: 32px">
                <p><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/Bitmaptuli6.png" style="width:175px"></p>
                <p style="font-size:26px;font-weight: 500;color:#333;margin-top: 20px">微信定制化开发</p>
                <p style="font-size:16px;font-weight: 300;color:#777777;margin-top: 12px">定制个性化功能，可以和企业网站、手机站、APP等连接，实现数据同步，提升企业的业务能力和用户管理能力，让营销变得更容易</p>
            </div>

        </div>
    </div>

    <div class="sec-three" style="padding: 20px 25px;background: #fff;text-align: center;">
        <p style="color: #333333;font-size: 24px;letter-spacing: 1px;margin-bottom: 0px;margin-top: 20px;font-weight: 500;">服务流程</p>
        <div style="height:1px;width:48px;background-color: #333333;margin: 15px auto"></div>
        <p class="wow fadeIn" data-wow-duration="1s" style="font-weight: 300;font-size: 16px;color:#333;letter-spacing: 1px;">服务内容涵盖网站建设，APP开发，小程序开发，信息化建设，区块链开发等。服务流程从咨询策划、视觉设计、交互设计，到程序开发，运营维护。三十一天自成立到现在5年时间，我们拥有丰富的建站经验和运维经验，保证所有的项目顺利完成。</p>
        <p class="wow fadeInRight" data-wow-duration="1s" style="padding: 15px 20px"><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/m-jiaofu-2x.png" style="width:100%"></p>
    </div>

    <div class="sec-four" style="padding: 20px 15px;background: #F4F4F5;text-align: center;">
        <p style="color: #333333;font-size: 24px;letter-spacing: 1px;margin-bottom: 0px;margin-top: 20px;font-weight: 500;">开发案例</p>
        <div style="height:1px;width:48px;background-color: #333333;margin: 15px auto"></div>
        <p class="wow fadeIn" data-wow-duration="1s" style="padding: 0 10px;font-weight: 300;font-size: 16px;color:#333;letter-spacing: 1px;">关注用户体验与产品策略，高端的技术，支持只为珍视品牌的您量身定制</p>

        <div class="product-list" style="margin-top: 30px">
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli0-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli1-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli2-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli3-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli4-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli5-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli6-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli7-2x.png" style="width:100%">
            </div>
            <div class="product-item wow zoomIn" data-wow-duration="1s" style="width:50%;float: left">
                <img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/anli8-2x.png" style="width:100%">
            </div>
            <div class="clearfix"></div>
        </div>

    </div>

    <div class="sec-five" style="padding: 20px 25px;background: #fff;text-align: center;">
        <p style="color: #333333;font-size: 24px;letter-spacing: 1px;margin-bottom: 0px;margin-top: 20px;font-weight: 500;">关于我们</p>
        <div style="height:1px;width:48px;background-color: #333333;margin: 15px auto"></div>
        <p class="wow fadeIn" data-wow-duration="1s" style="font-weight: 300;font-size: 16px;color:#333;letter-spacing: 1px;">苏州三十一天网络科技有限公司网站建设单位，主要从事网页设计、PC网站建设（电脑版网站建设）、App、wap网站建设（手机版网站建设）、程序开发、网站优化（SEO优化）、微网站、域名注册、空间租赁、虚拟主机等，具备承接各种规模类型的电子商务平台建设项目的能力。</p>
        <p class="wow fadeInRight" data-wow-duration="1s" style="padding: 15px 20px"><img src="https://other3.oss-cn-beijing.aliyuncs.com/13network/m-about-list2x.png" style="width:100%"></p>
    </div>

    <div class="sec-six wow zoomIn" data-wow-duration="1s" style="padding: 50px 20px;background: url('https://other3.oss-cn-beijing.aliyuncs.com/13network/footerbg-2x.png') no-repeat center;background-size: cover;">

        <div class="contact" style="padding: 30px;background: #fff;font-size: 12px">
            <p style="color: #333333;font-size: 19px;letter-spacing: 1px;margin-bottom: 0px;font-weight: 500;">联系我们</p>
            <div style="height:1px;width:48px;background-color: #333333;margin: 15px 0px"></div>
            <p class="wow fadeIn" data-wow-duration="1s" style="font-weight: 300;font-size: 14px;color:#333;letter-spacing: 1px;">提交您的信息，我们会第一时间与您联系！</p>

            <p style="margin-top: 15px;"><span class="glyphicon glyphicon-earphone" style="color:#31373B;margin-right: 15px"></span><a href="tel:<?=$setting->get('contact_phone')?>" style="color: #777777"><?=$setting->get('contact_phone')?></a></p>
            <p style="color:#777;margin-top: 15px"><span class="glyphicon glyphicon-map-marker" style="color:#31373B;margin-right: 15px"></span><?=$setting->get('contact_location')?></p>
            <p style="margin-top: 15px"><span class="glyphicon glyphicon-envelope" style="color:#31373B;margin-right: 15px"></span><a href="mailto:<?=$setting->get('contact_email')?>" style="color: #777777"><?=$setting->get('contact_email')?></a></p>
        </div>
        <div class="contact-form" style="padding: 30px 18px;background: #3A414E">
            <div class="form-item" style="">
                <input type="" name="username" id="username" placeholder="请填写您的姓名">
            </div>
            <div class="form-item" style="margin-top: 12px">
                <input type="" name="phone" id="phone" placeholder="请填写您的联系电话">
            </div>
            <div class="form-item" style="margin-top: 12px">
                <textarea id="question" placeholder="请填写您咨询的问题，以便客服与您高效沟通"></textarea>
            </div>
            <div class="form-item" style="margin-top: 12px;">
                <button class="btn-submit">提交</button>
            </div>
        </div>

    </div>
</div>
<script src="https://cdn.bootcss.com/Swiper/3.3.1/js/swiper.jquery.min.js"></script>
<script src="https://cdn.bootcss.com/wow/1.1.2/wow.min.js"></script>
<script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
<script type="text/javascript">

    new WOW().init();

    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        // autoplay: 2500,
    });

    $('.btn-submit').click(function(){

        // 用户名
        var username = $('#username').val();
        if(!username){
            myalert('用户名，请填写');
            return;
        }
        // 电话
        var phone = $('#phone').val();
        if(phone.indexOf("-") != -1){
            if(!checkTel(phone)){
                return;
            }
        }else{
            if(!checkPhone(phone)){
                return;
            }
        }
        // 问题
        var question = $('#question').val();
        if(!question){
            myalert('咨询的问题，请填写');
            return;
        }

        var randnumOne = Math.ceil(Math.random()*20);
        var randnumTwo = Math.ceil(Math.random()*20);

        var yanzheng =  layer.open({
            title:'验证提交',
            type: 1,
            skin: 'layui-layer-rim', //加上边框
            area: ['300px', '200px'], //宽高
            btn: ['提交'],
            yes: function(index, layero){
                var num = $('#num').val();

                var total = randnumOne + randnumTwo;
                if(num == total){
                    submit(yanzheng);
                }else{
                    myalert('结果不能为空或不正确',yanzheng);
                }
            },
            content: '<p style="text-align:center;margin-top:20px;"><input type="text" id="num" placeholder="'+randnumOne+'+'+randnumTwo+'=?" style="border:1px solid #333;width:80%;"></p>'
        });

    });

    function myalert(msg,closeobj){
        var myself = layer.alert(msg, {
            title:'错误信息',
            skin: 'layui-layer-lan' //样式类名
            ,closeBtn: 0
        }, function(){
            layer.close(closeobj);
            layer.close(myself);
        });
    }

    function submit(closeobj){

        // 用户名
        var username = $('#username').val();
        if(!username){
            myalert('用户名，请填写');
            return;
        }
        // 电话
        var phone = $('#phone').val();
        if(phone.indexOf("-") != -1){
            if(!checkTel(phone)){
                return;
            }
        }else{
            if(!checkPhone(phone)){
                return;
            }
        }
        // 问题
        var question = $('#question').val();
        if(!question){
            myalert('咨询的问题，请填写');
            return;
        }

        $.ajax({
            type: 'POST',
            url: "/home/default/consult",
            data:{
                usename : username,
                phone    : phone,
                question : question,
            },
            dataType: 'json',
            success: function(res){
                layer.close(closeobj);
                if(res.code == 200){
                    layer.msg('提交成功');
                }else{
                    myalert(res.message);
                }
            },
            error:function (error) {
                console.log(error)
            }
        })
    }

    function checkPhone(phone){
        if(!(/^1[34578]\d{9}$/.test(phone))){
            myalert('手机号码有误，请重填')
            return false;
        } else {
            return true;
        }
    }

    function checkTel(tel){
        if(!/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(tel)){
            myalert('固定电话有误，请重填')
            return false;
        }else {
            return true;
        }
    }

</script>
